/*      > C.Strcchr - count the no of occurrences of a character in a string */

#include <ctype.h>
#include "utils.h"

int strcchr (const char *s, char c)
{
        int i = 0;

        while ( *s )
        {
                if ( *s == c )
                        ++i;
                ++s;
        }

        return (i);
}
